#ifndef CpPoint_h
#define CpPoint_h

#include <TObject.h>
class CpPoint : public TObject
{
  public:
    CpPoint(const Double_t &x=0,const Double_t &y=0,const Double_t &z=0,const Double_t &t=0);
    ~CpPoint();

    void Print();

    void SetPosition(const Double_t &x,const Double_t &y,const Double_t &z);
    Double_t GetPosition(const Int_t &index=0) { return fPos[index];}
    Double_t GetX() { return fPos[0];}
    Double_t GetY() { return fPos[1];}
    Double_t GetZ() { return fPos[2];}
    
    
    void SetTime(const Double_t &time) { fTime=time; }
    Double_t GetTime() {return fTime;}

  private:

    Double_t fPos[3];
    Double_t fTime;
    ClassDef(CpPoint, 1);
};

#endif
